package com.easy.dn.ui.main.contract;

import com.easy.common.base.BaseModel;
import com.easy.common.base.BasePresenter;
import com.easy.common.base.BaseView;
import com.easy.dn.bean.ListBean;
import com.easy.dn.bean.ProfessionTypeBean;

import java.util.Map;

import rx.Observable;

/**
 * Created by 丁宁
 * on 2017/5/16.
 */

public interface ProfessionTypeContract {

    interface Model extends BaseModel {
        Observable<ListBean> getProfessionList(Map<String, ProfessionTypeBean> mSelect);
        Observable<ListBean> getSelectData(Map<String, ProfessionTypeBean> mSelect,String filterStr);
    }

    interface View extends BaseView {
        void returnProfessionList(ListBean listBean);
        void returnSelectProfessionList(ListBean listBean);
    }

    abstract class Presenter extends BasePresenter<View, Model> {
        public abstract void getData(Map<String, ProfessionTypeBean> mSelect);
        public abstract void getSelectData(Map<String, ProfessionTypeBean> mSelect ,String filterStr);
    }
}
